<template>
    <div class="topicList">
        <h3>专题精选</h3>
        <div class="">
            <van-swipe :loop="false" :width="300" :autoplay="2000">
            <van-swipe-item v-for="item in topicList" :key="item.id">
                <img :src="item.item_pic_url" alt="">
                <p>{{item.title}}</p>
                <p>{{item.subtitle}}</p>
            </van-swipe-item>
          
        </van-swipe>
        </div>
    </div>
</template>

<script>
export default {
    name: 'VueTopiclist',

    data() {
        return {
           
        };
    },
    props:['topicList'],

    mounted() {
        
    },

    methods: {
        
    },
};
</script>

<style lang="less" scoped>
.topicList{
    div{
        margin: 10px;
        h3{
        text-align: center;
        margin: 20px 0;
    }
    img{
        width: 100%;
        height: 180px;
        margin: 10px;
    }
    p{
        font-size: 16px;
        text-align: left;
    }
    }
}
</style>